import request from '@/utils/request'

// 查询receiptDetails列表
export function listReceiptDetails(query) {
  return request({
    url: '/system/receiptDetails/list',
    method: 'get',
    params: query
  })
}

// 查询receiptDetails详细
export function getReceiptDetails(detailId) {
  return request({
    url: '/system/receiptDetails/' + detailId,
    method: 'get'
  })
}

// 新增receiptDetails
export function addReceiptDetails(data) {
  return request({
    url: '/system/receiptDetails',
    method: 'post',
    data: data
  })
}

// 修改receiptDetails
export function updateReceiptDetails(data) {
  return request({
    url: '/system/receiptDetails',
    method: 'put',
    data: data
  })
}

// 删除receiptDetails
export function delReceiptDetails(detailId) {
  return request({
    url: '/system/receiptDetails/' + detailId,
    method: 'delete'
  })
}

// 导出receiptDetails
export function exportReceiptDetails(query) {
  return request({
    url: '/system/receiptDetails/export',
    method: 'get',
    params: query
  })
}